<!DOCTYPE html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml" xmlns:v-bind="http://www.w3.org/1999/xhtml">
<head>
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta charset="UTF-8">
    <title>旧车</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="/dist/css/oa-app.css">
    <style>
        .title{
            color: black;
            background-color: rgb(248, 248, 248);
        }
        td{
            color: #228bee;
        }
        [v-cloak]{
            display: none;
        }
        .td-value2 {
            text-align: left;
            padding-left: 4px !important;
        }
        .biTian {
            position: absolute;
            margin-left: -10px;
            margin-top: 1px;
        }
    </style>
</head>
<body>
<section class="content" id="app" v-cloak>
    <!--公司人员信息-->
    <table class="oa-table">
        <th colspan="4">公司人员信息</th>
        <tr>
            <td class="title"><i class="biTian">*</i> 归属公司</td>
            <td colspan="3" style="text-align: left;padding-left: 4px">
                <span  v-if="pageType=='look'">{{displaceMain.displace.companyName}}</span>
                <input v-else style="width: 100%;border: 0px" type="text" v-model="displaceMain.displace.companyName" />
            </td>
        </tr>
        <tr>
            <td class="title">区域</td>
            <td colspan="3" style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.displace.regionName}}</span>
            </td>
        </tr>
        <tr>
            <td class="title">大区经理</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.displace.bigregionManagerName}}</span>
            </td>
            <td class="title">区域经理</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.displace.regionManagerName}}</span>
            </td>
        </tr>
        <th colspan="4">置换新机信息</th>
        <tr>
            <td class="title">客户</td>
            <td colspan="3" style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.displace.customerName}}</span>
            </td>
        </tr>
        <tr>
            <td class="title">品牌</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.displace.replacementDeviceBrandName}}</span>
            </td>
            <td class="title">机型</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.displace.replacementDeviceModelName}}</span>
            </td>
        </tr>
        <tr>
            <td class="title">序列号</td>
            <td  colspan="3" style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.displace.replacementDeviceSequence}}</span>
            </td>
        </tr>
        <th colspan="4">旧机信息</th>
        <tr>
            <td class="title"><i class="biTian">*</i> 品牌</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.displace.brandName}}</span>
            </td>
            <td class="title"><i class="biTian">*</i> 设备类型</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.displace.replacementType}}</span>
            </td>
        </tr>
        <tr>
            <td class="title"><i class="biTian">*</i> 机型</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.displace.modelName}}</span>
            </td>
            <td colspan="2"></td>
        </tr>
        <tr>
            <td class="title">序列号</td>
            <td  colspan="3" style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.displace.sequence}}</span>
            </td>
        </tr>
        <tr>
            <td class="title">出厂年份</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.displace.factoryDate}}</span>
            </td>
            <td class="title">小时数(小时)</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.displace.hours?displaceMain.displace.hours:"无"}}</span>
            </td>
        </tr>
        <tr>
            <td class="title"><i class="biTian">*</i>状态</td>
            <td   style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.displace.state}}</span>
            </td>
            <td class="title">实际交车日期</td>
            <td   style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.acturalDeliveryDate?displace.acturalDeliveryDate:""}}</span>
            </td>
        </tr>
        <tr>
            <td class="title">库存地</td>
            <td  colspan="3" style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.displace.storeAddress}}</span>
            </td>
        </tr>
        <tr>
            <td class="title">评估价格(元)</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{fmoney(displaceMain.displace.estimatePrice)}}</span>
            </td>
            <td class="title">置换价格(元)</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{fmoney(displaceMain.displace.replacementPrice)}}</span>
            </td>
        </tr>
        <tr>
            <td class="title">出售价格(元)</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{fmoney(displaceMain.displace.sellPrice)!=0?displaceMain.displace.sellPrice:"未出售"}}</span>
            </td>
            <td class="title">置换补贴(元)</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{fmoney(displaceMain.displace.replacementSubsidy)}}</span>
            </td>
        </tr>
        <tr>
            <td class="title">亏损(元)</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{fmoney(displaceMain.displace.lossMoney)!=0?displaceMain.displace.lossMoney:"未出售"}}</span>
            </td>
            <td class="title">资金占用费(元)</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.displace.fundPossessionCost!=0?fmoney(displaceMain.displace.fundPossessionCost):""}}</span>
            </td>
        </tr>
        <template v-if="displaceMain.displace.attaches.length<=0">
            <tr>
                <td class="title" rowspan="1">合同/发票/合格证</td>
            </tr>
        </template>
        <template v-for="attache,i in displaceMain.displace.attaches">
            <tr>
                <td class="title" :rowspan="displaceMain.displace.attaches.length" v-if="i==0">合同/发票/合格证</td>
                <td  colspan="3" style="text-align: left;padding-left: 4px">
                    <div class="fj-tanzhongStyle fj-one-tanzhongStyle">
                        <b :class="fjStyle(attache.url)"></b>
                        <div class="name" style="width: 165px;" :title="attache.name"
                             v-on:click="look(attache.url)">
                            {{attache.name}}
                        </div>
                        <div class="down"><a href="javascript:void(0)" class="nui-txt-link"
                                             v-on:click="look(attache.url)">下载</a>
                        </div>
                    </div>
                    <!--<div class="oa-fj" @click="lookFj(attache.url)">
                        <b :class="fjStyle(attache.name)"></b>
                        <div class="name"  :title="attache.name">
                            {{attache.name}}
                        </div>
                    </div>-->
                </td>
            </tr>
        </template>
        <tr class="oa-lineTwo-H">
            <td class="title">备注</td>
            <td  colspan="3" style="text-align: left;padding-left: 4px">
                {{displaceMain.displace.remark}}
            </td>
        </tr>
    </table>
    <!--运输信息-->
    <table class="oa-table" >
        <th colspan="4" style="border-top: none">运输信息</th>
        <tr>
            <td class="title">出发地</td>
            <td colspan="2">
                <span>{{displaceMain.displace.departure}}</span>
            </td>
        </tr>
        <tr>
            <td class="title">联系人</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.displace.departureContactName}}</span>
            </td>
            <td class="title">电话</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.displace.departureContactTel}}</span>
            </td>
        </tr>
        <tr>
            <td class="title">目的地</td>
            <td colspan="2">
                <span>{{displaceMain.displace.destination}}</span>
            </td>

        </tr>
        <tr>
            <td class="title">联系人</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.displace.destinationContactName}}</span>
            </td>
            <td class="title">电话</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.displace.destinationContactTel}}</span>
            </td>
        </tr>
        <tr>
            <td class="title">运输公司</td>
            <td  colspan="3" style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.displace.transportCompany}}</span>
            </td>
        </tr>
        <tr>
            <td class="title">联系人</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.displace.traComContactName}}</span>
            </td>
            <td class="title">电话</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.displace.traComContactTel}}</span>
            </td>
        </tr>
        <tr>
            <td class="title">板车车牌</td>
            <td  colspan="3" style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.displace.modelCarLicense}}</span>
            </td>
        </tr>
        <tr>
            <td class="title">司机姓名</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.displace.driverName}}</span>
            </td>
            <td class="title">司机电话</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.displace.driverTel}}</span>
            </td>
        </tr>
        <tr>
            <td class="title">运费(含专票)/元</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{fmoney(displaceMain.displace.freight)}}</span>
            </td>
            <td class="title">扣款(元)</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{fmoney(displaceMain.displace.deduction)}}</span>
            </td>
        </tr>
        <tr>
            <td class="title">扣款说明</td>
            <td  colspan="3" style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.displace.deductionInstructions}}</span>
            </td>
        </tr>
        <tr>
            <td class="title">司机证件</td>
            <td  colspan="3" style="text-align: left;padding-left: 4px">
                <div v-if="displaceMain.displace.driverCertificateName" class="fj-tanzhongStyle fj-one-tanzhongStyle">
                    <b :class="fjStyle(displaceMain.displace.driverCertificateUrl)"></b>
                    <div class="name" style="width: 165px;" :title="displaceMain.displace.driverCertificateName"
                         v-on:click="look(displaceMain.displace.driverCertificateUrl)">
                        {{displaceMain.displace.driverCertificateName}}
                    </div>
                    <div class="down"><a href="javascript:void(0)" class="nui-txt-link"
                                         v-on:click="look(displaceMain.displace.driverCertificateUrl)">下载</a>
                    </div>
                </div>
                <!--<div v-if="displaceMain.displace.driverCertificateName" class="oa-fj" @click="lookFj(displaceMain.displace.driverCertificateUrl)">
                    <b :class="fjStyle(displaceMain.displace.driverCertificateName)"></b>
                    <div class="name"  :title="displaceMain.displace.driverCertificateName">
                        {{displaceMain.displace.driverCertificateName}}
                    </div>
                </div>-->
            </td>
        </tr>
        <template v-if="displaceMain.displace.devicePictures.length<=0">
            <tr>
                <td class="title" rowspan="1">板车及设备照片</td>
                <td  colspan="3" style="text-align: left;padding-left: 4px"></td>
            </tr>

        </template>
        <template v-for="attache,i in displaceMain.displace.devicePictures">
            <tr>
                <td class="title" :rowspan="displaceMain.displace.devicePictures.length" v-if="i==0">板车及设备照片</td>
                <td  colspan="3" style="text-align: left;padding-left: 4px">
                    <div class="fj-tanzhongStyle fj-one-tanzhongStyle">
                        <b :class="fjStyle(attache.url)"></b>
                        <div class="name" style="width: 165px;" :title="attache.name"
                             v-on:click="look(attache.url)">
                            {{attache.name}}
                        </div>
                        <div class="down"><a href="javascript:void(0)" class="nui-txt-link"
                                             v-on:click="look(attache.url)">下载</a>
                        </div>
                    </div>
                    <!--<div class="oa-fj" @click="lookFj(attache.url)">
                        <b :class="fjStyle(attache.name)"></b>
                        <div class="name"  :title="attache.name">
                            {{attache.name}}
                        </div>
                    </div>-->
                </td>
            </tr>
        </template>
    </table>
    <!--物流信息变更-->
    <table>

    </table>
    <!--出库-->
    <table  class="oa-table" style="margin-top: 10px;" v-if="displaceMain.outBoundRecord.flag==1 && displaceMain.outBoundRecord.contract != undefined">
        <th colspan="4" style="border-top: none">出库记录</th>
        <tr>
            <td class="title">出库类型</td>
            <td style="text-align: left;padding-left: 4px">
                <span>出库</span>
            </td>
        </tr>
        <tr>
            <td class="title">销售合同</td>
            <td  colspan="3" style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.outBoundRecord.contract.contractNo}}</span>
            </td>
        </tr>
        <tr>
            <td class="title">区域经理</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.outBoundRecord.contract.regionManagerName}}</span>
            </td>
            <td class="title">交付客户</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.outBoundRecord.contract.buyer}}</span>
            </td>
        </tr>
        <tr>
            <td class="title">电话</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.outBoundRecord.contract.buyerTel}}</span>
            </td>
        </tr>
        <tr>
            <td class="title">提车地址</td>
            <td  colspan="3" style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.outBoundRecord.main.pickUpAddress}}</span>
            </td>
        </tr>
        <tr>
            <td class="title">联系人</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.outBoundRecord.main.pickUpContacts}}</span>
            </td>
            <td class="title">电话</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.outBoundRecord.main.pickUpTelephone}}</span>
            </td>
        </tr>
        <tr>
            <td class="title">交车地址</td>
            <td  colspan="3" style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.outBoundRecord.main.delivery_address}}</span>
            </td>
        </tr>
        <tr>
            <td class="title">联系人</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.outBoundRecord.main.pickUpContacts}}</span>
            </td>
            <td class="title">电话</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.outBoundRecord.main.pickUpTelephone}}</span>
            </td>
        </tr>
        <tr>
            <td class="title">运输公司</td>
            <td  colspan="3" style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.outBoundRecord.main.transport_company}}</span>
            </td>
        </tr>
        <tr>
            <td class="title">联系人</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.outBoundRecord.main.contacts}}</span>
            </td>
            <td class="title">电话</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.outBoundRecord.main.telephone}}</span>
            </td>
        </tr>
        <tr>
            <td class="title">板车车牌</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.outBoundRecord.main.dray_license}}</span>
            </td>
            <td class="title">司机姓名</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.outBoundRecord.main.driver_name}}</span>
            </td>
        </tr>
        <tr>
            <td class="title">司机电话</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.outBoundRecord.main.driver_tel}}</span>
            </td>
            <td class="title">运费(含专票)/元</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{fmoney(displaceMain.outBoundRecord.main.special_fee)}}元</span>
            </td>
        </tr>
        <tr>
            <td class="title">扣款</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{fmoney(displaceMain.outBoundRecord.main.deduction_fee)}}元</span>
            </td>
        </tr>
        <tr>
            <td class="title">扣款说明</td>
            <td  colspan="3" style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.outBoundRecord.main.deduction_remark}}</span>
            </td>
        </tr>
        <template v-if="displaceMain.outCertificates == undefined || displaceMain.outCertificates.length<=0">
            <tr>
                <td class="title" rowspan="1">司机证件</td>
                <td  colspan="3" style="text-align: left;padding-left: 4px">
                    <div v-if="displaceMain.displace.driverCertificateName" class="fj-tanzhongStyle fj-one-tanzhongStyle">
                        <b :class="fjStyle(displaceMain.displace.driverCertificateUrl)"></b>
                        <div class="name" style="width: 165px;" :title="displaceMain.displace.driverCertificateName"
                             v-on:click="look(displaceMain.displace.driverCertificateUrl)">
                            {{displaceMain.displace.driverCertificateName}}
                        </div>
                        <div class="down"><a href="javascript:void(0)" class="nui-txt-link"
                                             v-on:click="look(displaceMain.displace.driverCertificateUrl)">下载</a>
                        </div>
                    </div>
                </td>
            </tr>
        </template>
        <template v-else>
            <tr  v-for="attache,i in displaceMain.outCertificates">
                <td class="title" :rowspan="displaceMain.outCertificates.length" v-if="i==0">合同/发票/合格证</td>
                <td  colspan="3" style="text-align: left;padding-left: 4px">
                    <div class="fj-tanzhongStyle fj-one-tanzhongStyle">
                        <b :class="fjStyle(attache.url)"></b>
                        <div class="name" style="width: 165px;" :title="attache.name"
                             v-on:click="look(attache.url)">
                            {{attache.name}}
                        </div>
                        <div class="down"><a href="javascript:void(0)" class="nui-txt-link"
                                             v-on:click="look(attache.url)">下载</a>
                        </div>
                    </div>
                    <!--<div class="oa-fj" @click="lookFj(attache.url)">
                        <b :class="fjStyle(attache.name)"></b>
                        <div class="name"  :title="attache.name">
                            {{attache.name}}
                        </div>
                    </div>-->
                </td>
            </tr>
        </template>
        <template v-if="displaceMain.outDevicePictures == undefined || displaceMain.outDevicePictures.length<=0">
            <tr>
                <td class="title" rowspan="1">设备照片</td>
                <td  colspan="3" style="text-align: left;padding-left: 4px"></td>
            </tr>
        </template>
        <template v-else>
            <tr  v-for="attache,i in displaceMain.outDevicePictures">
                <td class="title" :rowspan="displaceMain.outDevicePictures.length" v-if="i==0">合同/发票/合格证</td>
                <td  colspan="3" style="text-align: left;padding-left: 4px">
                    <div class="fj-tanzhongStyle fj-one-tanzhongStyle">
                        <b :class="fjStyle(attache.url)"></b>
                        <div class="name" style="width: 165px;" :title="attache.name"
                             v-on:click="look(attache.url)">
                            {{attache.name}}
                        </div>
                        <div class="down"><a href="javascript:void(0)" class="nui-txt-link"
                                             v-on:click="look(attache.url)">下载</a>
                        </div>
                    </div>
                    <!--<div class="oa-fj" @click="lookFj(attache.url)">
                        <b :class="fjStyle(attache.name)"></b>
                        <div class="name"  :title="attache.name">
                            {{attache.name}}
                        </div>
                    </div>-->
                </td>
            </tr>
        </template>
    </table>
    <!--移库-->
    <table  class="oa-table"   v-if="displaceMain.moveBoundRecord.flag==1">
        <th colspan="4" style="border-top: none">移库记录</th>
        <tr>
            <td class="title">出库类型</td>
            <td style="text-align: left;padding-left: 4px">
                <span>移库</span>
            </td>
        </tr>
        <tr>
            <td class="title">提车地址</td>
            <td  colspan="3" style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.moveBoundRecord.main.pickUpAddress}}</span>
            </td>
        </tr>
        <tr>
            <td class="title">联系人</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.moveBoundRecord.main.pickUpContacts}}</span>
            </td>
            <td class="title">电话</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.moveBoundRecord.main.pickUpTelephone}}</span>
            </td>
        </tr>
        <tr>
            <td class="title">新库存地</td>
            <td  colspan="3" style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.moveBoundRecord.main.delivery_address}}</span>
            </td>
        </tr>
        <tr>
            <td class="title">联系人</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.moveBoundRecord.main.pickUpContacts}}</span>
            </td>
            <td class="title">电话</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.moveBoundRecord.main.pickUpTelephone}}</span>
            </td>
        </tr>
        <tr>
            <td class="title">运输公司</td>
            <td  colspan="3" style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.moveBoundRecord.main.transport_company}}</span>
            </td>
        </tr>
        <tr>
            <td class="title">联系人</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.moveBoundRecord.main.contacts}}</span>
            </td>
            <td class="title">电话</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.moveBoundRecord.main.telephone}}</span>
            </td>
        </tr>
        <tr>
            <td class="title">板车车牌</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.moveBoundRecord.main.dray_license}}</span>
            </td>
            <td class="title">司机姓名</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.moveBoundRecord.main.driver_name}}</span>
            </td>
        </tr>
        <tr>
            <td class="title">司机电话</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.moveBoundRecord.main.driver_tel}}</span>
            </td>
            <td class="title">运费(含专票)/元</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{fmoney(displaceMain.moveBoundRecord.main.special_fee)}}元</span>
            </td>
        </tr>
        <tr>
            <td class="title">扣款</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{fmoney(displaceMain.moveBoundRecord.main.deduction_fee)}}元</span>
            </td>
        </tr>
        <tr>
            <td class="title">扣款说明</td>
            <td  colspan="3" style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.moveBoundRecord.main.deduction_remark}}</span>
            </td>
        </tr>
        <template v-if="displaceMain.moveCertificates == undefined || displaceMain.moveCertificates.length<=0">
            <tr>
                <td class="title" rowspan="1">司机证件</td>
                <td  colspan="3" style="text-align: left;padding-left: 4px"> <div v-if="displaceMain.displace.driverCertificateName" class="fj-tanzhongStyle fj-one-tanzhongStyle">
                    <b :class="fjStyle(displaceMain.displace.driverCertificateUrl)"></b>
                    <div class="name" style="width: 165px;" :title="displaceMain.displace.driverCertificateName"
                         v-on:click="look(displaceMain.displace.driverCertificateUrl)">
                        {{displaceMain.displace.driverCertificateName}}
                    </div>
                    <div class="down"><a href="javascript:void(0)" class="nui-txt-link"
                                         v-on:click="look(displaceMain.displace.driverCertificateUrl)">下载</a>
                    </div>
                </div></td>
            </tr>
        </template>
        <template v-else>
            <tr  v-for="attache,i in displaceMain.moveCertificates">
                <td class="title" :rowspan="displaceMain.moveCertificates.length" v-if="i==0">司机证件</td>
                <td  colspan="3" style="text-align: left;padding-left: 4px">
                    <div class="fj-tanzhongStyle fj-one-tanzhongStyle">
                        <b :class="fjStyle(attache.url)"></b>
                        <div class="name" style="width: 165px;" :title="attache.name"
                             v-on:click="look(attache.url)">
                            {{attache.name}}
                        </div>
                        <div class="down"><a href="javascript:void(0)" class="nui-txt-link"
                                             v-on:click="look(attache.url)">下载</a>
                        </div>
                    </div>
                    <!--<div class="oa-fj" @click="lookFj(attache.url)">
                        <b :class="fjStyle(attache.name)"></b>
                        <div class="name"  :title="attache.name">
                            {{attache.name}}
                        </div>
                    </div>-->
                </td>
            </tr>
        </template>
        <template v-if="displaceMain.moveCertificates == undefined || displaceMain.moveCertificates.length<=0">
            <tr>
                <td class="title" rowspan="1">板车及设备照片</td>
                <td  colspan="3" style="text-align: left;padding-left: 4px"></td>
            </tr>
        </template>
        <template v-else>
            <tr  v-for="attache,i in displaceMain.moveCertificates">
                <td class="title" :rowspan="displaceMain.moveCertificates.length" v-if="i==0">板车及设备照片</td>
                <td  colspan="3" style="text-align: left;padding-left: 4px">
                    <div class="fj-tanzhongStyle fj-one-tanzhongStyle">
                        <b :class="fjStyle(attache.url)"></b>
                        <div class="name" style="width: 165px;" :title="attache.name"
                             v-on:click="look(attache.url)">
                            {{attache.name}}
                        </div>
                        <div class="down"><a href="javascript:void(0)" class="nui-txt-link"
                                             v-on:click="look(attache.url)">下载</a>
                        </div>
                    </div>
                    <!--<div class="oa-fj" @click="lookFj(attache.url)">
                        <b :class="fjStyle(attache.name)"></b>
                        <div class="name"  :title="attache.name">
                            {{attache.name}}
                        </div>
                    </div>-->
                </td>
            </tr>
        </template>
    </table>
    <!--退货-->
    <table  class="oa-table"  v-if="displaceMain.returnBoundRecord.flag==1">
        <th colspan="4" style="border-top: none">退货记录</th>
        <tr>
            <td class="title">出库类型</td>
            <td style="text-align: left;padding-left: 4px">
                <span>退货</span>
            </td>
        </tr>
        <tr>
            <td class="title">提车地址</td>
            <td  colspan="3" style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.returnBoundRecord.main.pickUpAddress}}</span>
            </td>
        </tr>
        <tr>
            <td class="title">联系人</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.returnBoundRecord.main.pickUpContacts}}</span>
            </td>
            <td class="title">电话</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.returnBoundRecord.main.pickUpTelephone}}</span>
            </td>
        </tr>
        <tr>
            <td class="title">退库地址</td>
            <td  colspan="3" style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.returnBoundRecord.main.delivery_address}}</span>
            </td>
        </tr>
        <tr>
            <td class="title">联系人</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.returnBoundRecord.main.pickUpContacts}}</span>
            </td>
            <td class="title">电话</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.returnBoundRecord.main.pickUpTelephone}}</span>
            </td>
        </tr>
        <tr>
            <td class="title">运输公司</td>
            <td  colspan="3" style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.returnBoundRecord.main.transport_company}}</span>
            </td>
        </tr>
        <tr>
            <td class="title">联系人</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.returnBoundRecord.main.contacts}}</span>
            </td>
            <td class="title">电话</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.returnBoundRecord.main.telephone}}</span>
            </td>
        </tr>
        <tr>
            <td class="title">板车车牌</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.returnBoundRecord.main.dray_license}}</span>
            </td>
            <td class="title">司机姓名</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.returnBound.main.driver_name}}</span>
            </td>
        </tr>
        <tr>
            <td class="title">司机电话</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.returnBoundRecord.main.driver_tel}}</span>
            </td>
            <td class="title">运费(含专票)/元</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{fmoney(displaceMain.returnBoundRecord.main.special_fee)}}元</span>
            </td>
        </tr>
        <tr>
            <td class="title">扣款</td>
            <td style="text-align: left;padding-left: 4px">
                <span>{{fmoney(displaceMain.returnBoundRecord.main.deduction_fee)}}元</span>
            </td>
        </tr>
        <tr>
            <td class="title">扣款说明</td>
            <td  colspan="3" style="text-align: left;padding-left: 4px">
                <span>{{displaceMain.returnBoundRecord.main.deduction_remark}}</span>
            </td>
        </tr>
        <template v-if="displaceMain.returnCertificates == undefined || displaceMain.returnCertificates.length<=0">
            <tr>
                <td class="title" rowspan="1">司机证件</td>
                <td  colspan="3" style="text-align: left;padding-left: 4px"></td>
            </tr>
        </template>
        <template v-else>
            <tr  v-for="attache,i in displaceMain.returnCertificates">
                <td class="title" :rowspan="displaceMain.returnCertificates.length" v-if="i==0">司机证件</td>
                <td  colspan="3" style="text-align: left;padding-left: 4px">
                    <div class="fj-tanzhongStyle fj-one-tanzhongStyle">
                        <b :class="fjStyle(attache.url)"></b>
                        <div class="name" style="width: 165px;" :title="attache.name"
                             v-on:click="look(attache.url)">
                            {{attache.name}}
                        </div>
                        <div class="down"><a href="javascript:void(0)" class="nui-txt-link"
                                             v-on:click="look(attache.url)">下载</a>
                        </div>
                    </div>
                   <!-- <div class="oa-fj" @click="lookFj(attache.url)">
                        <b :class="(attache.name)"></b>
                        <div class="name"  :title="attache.name">
                            {{attache.name}}
                        </div>
                    </div>-->
                </td>
            </tr>
        </template>
        <template v-if="displaceMain.returnDevicePictures == undefined || displaceMain.returnDevicePictures.length<=0">
            <tr>
                <td class="title" rowspan="1">设备照片</td>
                <td  colspan="3" style="text-align: left;padding-left: 4px"></td>
            </tr>
        </template>
        <template v-else>
            <tr  v-for="attache,i in displaceMain.returnDevicePictures">
                <td class="title" :rowspan="displaceMain.returnDevicePictures.length" v-if="i==0">板车设备照片</td>
                <td  colspan="3" style="text-align: left;padding-left: 4px">
                    <div class="fj-tanzhongStyle fj-one-tanzhongStyle">
                        <b :class="fjStyle(attache.url)"></b>
                        <div class="name" style="width: 165px;" :title="attache.name"
                             v-on:click="look(attache.url)">
                            {{attache.name}}
                        </div>
                        <div class="down"><a href="javascript:void(0)" class="nui-txt-link"
                                             v-on:click="look(attache.url)">下载</a>
                        </div>
                    </div>
                    <!--<div class="oa-fj" @click="lookFj(attache.url)">
                        <b :class="fjStyle(attache.name)"></b>
                        <div class="name"  :title="attache.name">
                            {{attache.name}}
                        </div>
                    </div>-->
                </td>
            </tr>
        </template>
    </table>
    <!--审核进度-->
    <table class="oa-table">
        <thead class=" oa-table-title-gray">
        <tr>
            <th colspan="4" class="tableTitle" style="border-top: none">审批进度</th>
        </tr>
        <tr>
            <th>审核人员</th>
            <th>审核状态</th>
            <th>审核时间</th>
            <th>审核意见</th>
        </tr>
        </thead>
        <tr>
            <td style="border-top: none">{{displaceMain.displace.auditName}}</td>
            <td style="border-top: none">{{convertAuditFlagToName(displaceMain.displace.auditFlag)}}</td>
            <td style="border-top: none">{{formatDate(displaceMain.displace.auditTime)}}</td>
            <td style="border-top: none">{{displaceMain.displace.auditAdvise}}</td>
        </tr>
    </table>


</section>
<script src="https://file.ggxqce.com/web/vue.min.js"></script>
<script src="https://file.ggxqce.com/web/axios.min.js"></script>
<script src="/dist/js/newOaApp.js"></script>
<script type="text/javascript">
    var app = new Vue({
        el: '#app',
        data: {
            pageType:getUrlParamObj().pageType,
            user:{

            },
            displaceMain:{
                displace:{
                    attaches:[],
                    devicePictures:[]
                },
                outBoundRecord:{
                    flag:0
                },
                moveBoundRecord:{
                    flag:0
                },
                returnBoundRecord:{
                    flag:0
                },
            }
        },
        methods: {
            getDisplace:function () {
                var that = this;
                that.showLoading();
                axios({
                    url: "/deviceDisplace/getDisplaceById.json",
                    method: 'post',
                    data: {id:getUrlParamObj().id},
                }).then(function (response) {
                    that.displaceMain = response;
                    that.hideLoading()
                }).catch(function (error) {
                    console.log(error)
                })
            },
            fmoney: function (s, n) {
                    n = n > 0 && n <= 20 ? n : 2;
                    s = parseFloat((s + "").replace(/[^\d\.-]/g, "")).toFixed(n) + "";
                    var l = s.split(".")[0].split("").reverse(), r = s.split(".")[1],
                        t = "";
                    for (i = 0; i < l.length; i++) {
                        t += l[i] + ((i + 1) % 3 == 0 && (i + 1) != l.length ? "," : "");
                    }
                    return t.split("").reverse().join("") + "." + r;

            },
            fjStyle: function (fjName) {
                //传入附件名称 返回对应附件类型的样式用于展示
                if (fjName) {
                    var type = fjName.substring(fjName.lastIndexOf('.') + 1);
                    return 'img fj-' + type
                }
                return 'img'
            },
            download: function (attachId, fileName) {
                //downloadFile(attachId,fileName)
                return false;
            },
            look: function (url) {
                var param = {
                    url: url,
                }
                JSBridge.call(FILE, 'showFile', param)
            },
            convertAuditFlagToName: function (auditFlag) {
                //auditFlag:-1,0,1,2,3,4,5,6
                switch (auditFlag) {
                    case -1:
                        return "未提交";
                        break;
                    case 0:
                        return "审核中";
                        break;
                    case 1:
                        return "通过";
                        break;
                    case 2:
                        return "驳回";
                        break;
                    default :
                        break;
                }
            },
            formatDate: function (now) {
//                return  NewDate(now).Format(TimeFormat.pcList)
                if(now){
                    return new Date(now).Format(TimeFormat.middle)
                }else{
                    return  "";
                }

            },
            showLoading: function () {
                var that = this
                var param = {
                    cancelable: false
                }
                JSBridge.call(UI, 'showLoading', param)


            },
            hideLoading: function () {
                JSBridge.call(UI, 'hideLoading')
            }
        },
        mounted:function(){
            var that = this;
            that.getDisplace();
        }
    })
</script>
<script>
    //全局点击事件  查看是否有查看更多 有则隐藏


</script>
</body>
</html>